package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author du
 * date 2018/8/4 下午12:24
 */
public class ExamineIndexResult implements Parcelable{
    /**
     * id : 161
     * gid : 1
     * ex_title : 11月份月考（2017年）
     * ex_desc : <p>本次测试说明</p><p>一、试卷共包括18道题目，满分100分，考试时间90分钟。</p>
     * ex_usedtime : 90
     * questions_number : 18
     * grade : 一年级
     */

    private String id;//试卷id
    private String gid;//年级id
    private String ex_title;//试卷标题
    private String ex_desc;//试卷简述
    private String ex_usedtime;//用时（分钟）
    private String questions_number;//试卷题目数量
    private String grade;//试卷关联的年级

    public String getId() { return id;}

    public void setId(String id) { this.id = id;}

    public String getGid() { return gid;}

    public void setGid(String gid) { this.gid = gid;}

    public String getEx_title() { return ex_title;}

    public void setEx_title(String ex_title) { this.ex_title = ex_title;}

    public String getEx_desc() { return ex_desc;}

    public void setEx_desc(String ex_desc) { this.ex_desc = ex_desc;}

    public String getEx_usedtime() { return ex_usedtime;}

    public void setEx_usedtime(String ex_usedtime) { this.ex_usedtime = ex_usedtime;}

    public String getQuestions_number() { return questions_number;}

    public void setQuestions_number(String questions_number) { this.questions_number = questions_number;}

    public String getGrade() { return grade;}

    public void setGrade(String grade) { this.grade = grade;}

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.gid);
        dest.writeString(this.ex_title);
        dest.writeString(this.ex_desc);
        dest.writeString(this.ex_usedtime);
        dest.writeString(this.questions_number);
        dest.writeString(this.grade);
    }

    public ExamineIndexResult() {}

    protected ExamineIndexResult(Parcel in) {
        this.id = in.readString();
        this.gid = in.readString();
        this.ex_title = in.readString();
        this.ex_desc = in.readString();
        this.ex_usedtime = in.readString();
        this.questions_number = in.readString();
        this.grade = in.readString();
    }

    public static final Creator<ExamineIndexResult> CREATOR = new Creator<ExamineIndexResult>() {
        @Override
        public ExamineIndexResult createFromParcel(Parcel source) {return new ExamineIndexResult(source);}

        @Override
        public ExamineIndexResult[] newArray(int size) {return new ExamineIndexResult[size];}
    };
}
